{extend name="/base"}
{block name="body"}
		<div class="layui-card">
			<div class="layui-card-body">
				<form class="layui-form" action="">
					<div class="layui-form-item">
						<label class="layui-form-label">用户名</label>
						<div class="layui-input-inline">
							<input type="text" name="username" placeholder="" class="layui-input">
						</div>
						<button class="pear-btn pear-btn-md pear-btn-primary" lay-submit lay-filter="query">
							<i class="layui-icon layui-icon-search"></i>
							查询
						</button>
						<button type="reset" class="pear-btn pear-btn-md">
							<i class="layui-icon layui-icon-refresh"></i>
							重置
						</button>
					</div>
				</form>
			</div>
		</div>
		<div class="layui-card">
			<div class="layui-card-body">
				<table id="dataTable" lay-filter="dataTable"></table>
			</div>
		</div>

		<script type="text/html" id="lay-toolbar">
			<button class="pear-btn pear-btn-primary pear-btn-md" lay-event="add"> 
				<i class="layui-icon layui-icon-add-1"></i> 
				新增 
			</button>
			<button class="pear-btn pear-btn-danger pear-btn-md" lay-event="batchRemove">
				 <i class="layui-icon layui-icon-delete"></i>
				  删除
			</button>
		</script>
		
		<script type="text/html" id="options">
			<a class="pear-btn pear-btn-primary pear-btn-sm" lay-event="edit">编辑</a>
			<a class="pear-btn pear-btn-primary pear-btn-sm" lay-event="role">角色</a>
			<a class="pear-btn pear-btn-primary pear-btn-sm" lay-event="permission">权限</a>
			<a class="pear-btn pear-btn-danger pear-btn-sm" lay-event="del">删除</a>
		</script>
	    <script id="status" type="text/html">
			{{# if (d.status==1) { }}
			<a class="layui-btn layui-btn-xs" lay-event="enabled">
				启用
			</a>
			{{# } else { }}
			<a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="disabled">
				禁用
			</a>
			{{# } }}
		</script>
		{/block}
		{block name="js"}
		<script src="__ADMIN__/module/admin/admin/index.js"></script>
		{/block}